package net.tv90.bfmccore.unlock;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.bukkit.entity.Player;

@Data
@EqualsAndHashCode(callSuper = true)
public class UnlockItemAttachment extends UnlockItem{
    /*** 配件所属的阵营 */
    private String country;
    /*** 配件所属的武器种类 */
    private String weaponType;
    /*** 多少击杀数可以解锁该配件 */
    private int killNum = 0;
    /*** 多少军衔可以解锁该配件 */
    private int rankNum = 0;
    /*** 解锁该配件所花的游戏币数量 */
    private int moneyCost = 0;

    public UnlockItemAttachment(String id, String name, String name_lang) {
        super(id, name, name_lang);
    }

    public UnlockItemAttachment(String id, String name, String name_lang, String country, String weaponType, int killNum, int rankNum, int moneyCost) {
        super(id, name, name_lang);
        this.country = country;
        this.weaponType = weaponType;
        this.killNum = killNum;
        this.rankNum = rankNum;
        this.moneyCost = moneyCost;
    }

    public UnlockItemAttachment(String id, String name, String name_lang, String country, String weaponType, int killNum, int rankNum) {
        super(id, name, name_lang);
        this.country = country;
        this.weaponType = weaponType;
        this.killNum = killNum;
        this.rankNum = rankNum;
    }

    @Override
    public void getUnlockItem(Player p) {

    }

    @Override
    public boolean isUnlockedItem(Player p) {
        return false;
    }

    @Override
    public boolean canUnlockItem(Player p) {
        return false;
    }
}
